package com.leonard.rest.user;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Api("用户Controller")
public class UserController {

    @GetMapping("/admin")
    @ApiOperation("管理员")
    public String admin() {
        return "admin success!";
    }

    @GetMapping("/update")
    @ApiOperation("更新")
    public String update() {
        return "update success!";
    }

    @GetMapping("/add")
    @ApiOperation("添加")
    public String add() {
        return "add success!";
    }

    @GetMapping("/delete")
    @ApiOperation("删除")
    public String delete() {
        return "delete success!";
    }

    @GetMapping("/details")
    @ApiOperation("详情")
    public String detais() {
        return "details success!";
    }

    @GetMapping("/export")
    @ApiOperation("导出")
    public String export() {
        return "export success!";
    }
}
